package com.decent.util;

/**
 * @Author: 吃瓜
 * @Description:
 * @Date Created in 202040004004 10:04
 * @Modified By:
 */
public enum MessageEnum {
    /**
     *
     */
    NULL_MSG(200,null),
    UPDATE_SUCCESS(200,"请求通过"),
    UPDATE_ERROR(400,"未修改"),

    PARAM_ERROR(400, "参数错误"),

    INSERT_SUCCESS(200,"插入成功"),
    INSERT_ERROR(400,"插入失败"),

    SELECT_SUCCESS(200,"OK"),
    SELECT_ERROR(400,"ERROR"),

    DELETE_SUCCESS(200,"删除成功"),
    DELETE_ERROR(400,"删除失败"),

    SELECT_STORE_SUCCESS(200,"查询门店成功"),
    SELECT_STORE_ERROR(400,"查询门店失败"),

    PAGE_SUCCESS(200,"查询成功"),
    PAGE_ERROR(400,"无数据"),

    LOGIN_SUCCESS(200, "登录成功"),
    LOGIN_PASSWORD_ERROR(400, "密码错误"),
    LOGIN_ERROR(400, "账号或密码错误");


    MessageEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }



    private final Integer status;
    private final String msg;

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }


}
